<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
    Object admin=request.getSession().getAttribute("admin");
%>
<html>
<head>
    <title>考试网后台管理系统</title>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="keywords" content="Glance Design Dashboard Responsive web template, Bootstrap Web Templates, Flat Web Templates, Android Compatible web template,
SmartPhone Compatible web template, free WebDesigns for Nokia, Samsung, LG, SonyEricsson, Motorola web design" />
    <script type="application/x-javascript"> addEventListener("load", function() { setTimeout(hideURLbar, 0); }, false); function hideURLbar(){ window.scrollTo(0,1); } </script>

    <!-- Bootstrap Core CSS -->
    <link href="css/bootstrap.css" rel='stylesheet' type='text/css' />

    <!-- Custom CSS -->
    <link href="css/style.css" rel='stylesheet' type='text/css' />

    <!-- font-awesome icons CSS -->
    <link href="css/font-awesome.css" rel="stylesheet">
    <!-- //font-awesome icons CSS-->

    <!-- side nav css file -->
    <link href='css/SidebarNav.min.css' media='all' rel='stylesheet' type='text/css'/>
    <!-- //side nav css file -->
    <!-- js-->
    <script src="js/jquery-1.11.1.min.js"></script>
    <script src="js/modernizr.custom.js"></script>

    <!--webfonts-->
    <link href="//fonts.googleapis.com/css?family=PT+Sans:400,400i,700,700i&amp;subset=cyrillic,cyrillic-ext,latin-ext" rel="stylesheet">
    <script src="js/Chart.js"></script>
    <script src="js/metisMenu.min.js"></script>
    <script src="js/custom.js"></script>
    <link href="css/custom.css" rel="stylesheet">
    <script src="js/pie-chart.js" type="text/javascript"></script>
    <script type="text/javascript">

        $(document).ready(function () {
            $('#demo-pie-1').pieChart({
                barColor: '#2dde98',
                trackColor: '#eee',
                lineCap: 'round',
                lineWidth: 8,
                onStep: function (from, to, percent) {
                    $(this.element).find('.pie-value').text(Math.round(percent) + '%');
                }
            });

            $('#demo-pie-2').pieChart({
                barColor: '#8e43e7',
                trackColor: '#eee',
                lineCap: 'butt',
                lineWidth: 8,
                onStep: function (from, to, percent) {
                    $(this.element).find('.pie-value').text(Math.round(percent) + '%');
                }
            });

            $('#demo-pie-3').pieChart({
                barColor: '#ffc168',
                trackColor: '#eee',
                lineCap: 'square',
                lineWidth: 8,
                onStep: function (from, to, percent) {
                    $(this.element).find('.pie-value').text(Math.round(percent) + '%');
                }
            });


        });
        var xmlhttp=new XMLHttpRequest();
        window.onload=function() {
            xmlhttp.open("GET", "/examproject/man/stucount", true);
            xmlhttp.send();
            xmlhttp.onreadystatechange = function () {
                if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
                    var stucount=document.getElementById("stucount");
                    stucount.innerText=xmlhttp.responseText;
                        teacount()
                }
            }

        }
        function teacount() {
            xmlhttp.open("GET", "/examproject/man/teacount", true);
            xmlhttp.send();
            xmlhttp.onreadystatechange = function () {
                if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
                    var teacount=document.getElementById("teacount");
                    teacount.innerText=xmlhttp.responseText;
                    examcount();
                }
            }
        }
        function examcount() {
            xmlhttp.open("GET", "/examproject/man/examcount", true);
            xmlhttp.send();
            xmlhttp.onreadystatechange = function () {
                if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
                    var teacount=document.getElementById("examcount");
                    teacount.innerText=xmlhttp.responseText;
                    questiondancount();
                }
            }
        }
        function questiondancount() {
            xmlhttp.open("GET", "/examproject/man/questiondancount", true);
            xmlhttp.send();
            xmlhttp.onreadystatechange = function () {
                if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
                    var teacount=document.getElementById("questiondancount");
                    teacount.innerText=xmlhttp.responseText;
                    questionduocount();
                }
            }
        }
        function questionduocount() {
            xmlhttp.open("GET", "/examproject/man/questionduocount", true);
            xmlhttp.send();
            xmlhttp.onreadystatechange = function () {
                if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
                    var teacount=document.getElementById("questionduocount");
                    teacount.innerText=xmlhttp.responseText;
                }
            }
        }
    </script>
    <!-- //pie-chart --><!-- index page sales reviews visitors pie chart -->

    <!-- requried-jsfiles-for owl -->
    <link href="css/owl.carousel.css" rel="stylesheet">
    <script src="js/owl.carousel.js"></script>
    <script>
        $(document).ready(function() {
            $("#owl-demo").owlCarousel({
                items : 3,
                lazyLoad : true,
                autoPlay : true,
                pagination : true,
                nav:true,
            });
        });
    </script>
    <!-- //requried-jsfiles-for owl -->
</head>
<body class="cbp-spmenu-push">
<div class="main-content">
    <div class="cbp-spmenu cbp-spmenu-vertical cbp-spmenu-left" id="cbp-spmenu-s1">
        <!--left-fixed -navigation-->
        <aside class="sidebar-left">
            <nav class="navbar navbar-inverse">
                <div class="navbar-header">
                    <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target=".collapse" aria-expanded="false">
                        <span class="sr-only">Toggle navigation</span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                    </button>
                    <h1><a class="navbar-brand" href="index.jsp"><span class="fa fa-area-chart"></span>network<span class="dashboard_text">考试网</span></a></h1>
                </div>
                <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
                    <ul class="sidebar-menu">
                        <li class="header">考试网后台管理系统</li>
                        <li class="treeview">
                            <a href="/examproject/manage/examcenter.jsp">
                                <i class="fa fa-laptop"></i>
                                <span>试卷中心</span>
                                <i class="fa fa-angle-left pull-right"></i>
                            </a>
                            <ul class="treeview-menu">
                                <li><a href="/examproject/manage/examcenter.jsp"><i class="fa fa-angle-right"></i>试卷操作</a></li>
                                <li><a href="/examproject/manage/scoretop.jsp"><i class="fa fa-angle-right"></i>成绩排行榜</a></li>
                                <li><a href="/examproject/manage/falsetop.jsp"><i class="fa fa-angle-right"></i>错题排行榜</a></li>
                            </ul>
                        </li>
                        <li class="treeview">
                            <a href="/examproject/manage/testlog.jsp">
                                <i class="fa fa-dashboard"></i> <span>考试记录</span>
                            </a>
                        </li>

                        <li class="treeview">
                            <a href="/examproject/manage/mmessage.jsp">
                                <i class="fa fa-dashboard"></i> <span>留言管理</span>
                            </a>
                        </li>
                        <li class="treeview">
                            <a href="#">
                                <i class="fa fa-laptop"></i>
                                <span>班级管理</span>
                                <i class="fa fa-angle-left pull-right"></i>
                            </a>
                            <ul class="treeview-menu">
                                <li><a href="/examproject/man/cxsybj"><i class="fa fa-angle-right"></i>各班学生考试情况</a></li>
                                <li><a href="/examproject/man/findhom"><i class="fa fa-angle-right"></i>各班学生作业未完成情况</a></li>
                            </ul>
                        </li>
                        <li class="treeview">
                            <a href="/examproject/man/stugetPage">
                                <i class="fa fa-dashboard"></i> <span>学生管理</span>
                            </a>
                        </li>
                        <li class="treeview">
                            <a href="/examproject/man/getPage">
                                <i class="fa fa-dashboard"></i> <span>老师管理</span>
                            </a>
                        </li>

                        <li class="treeview">
                            <a href="#">
                                <i class="fa fa-laptop"></i>
                                <span>题库中心</span>
                                <i class="fa fa-angle-left pull-right"></i>
                            </a>
                            <ul class="treeview-menu">
                                <li><a href="/examproject/manage/tt.jsp"><i class="fa fa-angle-right"></i>新增考题</a></li>
                                <li><a href="/examproject/manage/CloudReadExecl.jsp"><i class="fa fa-angle-right"></i> excel批量导入考题 </a></li>
                                <li><a href="/examproject/manage/questionscenter.jsp"><i class="fa fa-angle-right"></i> 试题中心查看 </a></li>
                            </ul>
                        </li>
                        <li class="treeview">
                            <a href="#">
                                <i class="fa fa-dashboard"></i> <span>视频中心</span>
                                <i class="fa fa-angle-left pull-right"></i>
                            </a>
                            <ul class="treeview-menu">
                                <li><a href="/examproject/manage/stuvideo.jsp"><i class="fa fa-angle-right"></i>教学视频</a></li>
                                <li><a href="/examproject/manage/clsvideo.jsp"><i class="fa fa-angle-right"></i> 课堂回放 </a></li>
                            </ul>
                        </li>
                        <li class="treeview">
                            <a href="#">
                                <i class="fa fa-laptop"></i>
                                <span>安全设置</span>
                                <i class="fa fa-angle-left pull-right"></i>
                            </a>
                            <ul class="treeview-menu">
                                <li><a href="/examproject/man/chazcm"><i class="fa fa-angle-right"></i>学生注册码</a></li>
                                <li><a href="/examproject/man/chazcm"><i class="fa fa-angle-right"></i>老师注册码</a></li>
                            </ul>
                        </li>

                    </ul>
                </div>
                <!-- /.navbar-collapse -->
            </nav>
        </aside>
    </div>
    <!--left-fixed -navigation-->

    <!-- header-starts -->
    <div class="sticky-header header-section ">
        <div class="header-left">
            <!--toggle button start-->
            <button id="showLeftPush"><i class="fa fa-bars"></i></button>
            <!--toggle button end-->

        <div class="header-right">
            <!--//end-search-box-->
            <div class="profile_details">
                <ul>
                    <li class="dropdown profile_details_drop">
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown" aria-expanded="false">
                            <div class="profile_img">
                                <span class="prfil-img"><img src="../images/logo.png" width="50px" alt=""> </span>
                                <div class="user-name">
                                    <p><%=admin%></p>
                                    <span>管理员</span>
                                </div>
                                <i class="fa fa-angle-down lnr"></i>
                                <i class="fa fa-angle-up lnr"></i>
                                <div class="clearfix"></div>
                            </div>
                        </a>
                        <ul class="dropdown-menu drp-mnu">
                            <li> <a href="/examproject/man/tuichu"><i class="fa fa-cog"></i> 退出</a> </li>
                        </ul>
                    </li>
                </ul>
            </div>
            <div class="clearfix"> </div>
        </div>
        <div class="clearfix"> </div>
    </div>
    <!-- //header-ends -->
    <!-- main content start-->
    <div id="page-wrapper">
        <div class="main-page">
            <div class="col_3">
                <div class="col-md-3 widget widget1">
                    <div class="r3_counter_box">
                        <i class="pull-left fa fa-dollar icon-rounded"></i>
                        <div class="stats">
                            <h5><strong id="stucount">111</strong></h5>
                            <span>平台学生注册数</span>
                        </div>
                    </div>
                </div>
                <div class="col-md-3 widget widget1">
                    <div class="r3_counter_box">
                        <i class="pull-left fa fa-laptop user1 icon-rounded"></i>
                        <div class="stats">
                            <h5><strong id="teacount">1</strong></h5>
                            <span>平台老师注册数</span>
                        </div>
                    </div>
                </div>
                <div class="col-md-3 widget widget1">
                    <div class="r3_counter_box">
                        <i class="pull-left fa fa-money user2 icon-rounded"></i>
                        <div class="stats">
                            <h5><strong id="examcount">0</strong></h5>
                            <span>试卷总数</span>
                        </div>
                    </div>
                </div>
                <div class="col-md-3 widget widget1">
                    <div class="r3_counter_box">
                        <i class="pull-left fa fa-pie-chart dollar1 icon-rounded"></i>
                        <div class="stats">
                            <h5><strong id="questiondancount">0</strong></h5>
                            <span>单选题总数</span>
                        </div>
                    </div>
                </div>
                <div class="col-md-3 widget">
                    <div class="r3_counter_box">
                        <i class="pull-left fa fa-users dollar2 icon-rounded"></i>
                        <div class="stats">
                            <h5><strong id="questionduocount">0</strong></h5>
                            <span>多选题总数</span>
                        </div>
                    </div>
                </div>
                <div class="clearfix"> </div>
            </div>
            <!-- for amcharts js -->
            <script src="js/amcharts.js"></script>
            <script src="js/serial.js"></script>
            <script src="js/export.min.js"></script>
            <link rel="stylesheet" href="css/export.css" type="text/css" media="all" />
            <script src="js/light.js"></script>
            <!-- for amcharts js -->

            <script  src="js/index1.js"></script>

            <div class="charts">
                <div class="mid-content-top charts-grids">
                    <div class="middle-content">
                        <h4 class="title">办公 环境</h4>
                        <!-- start content_slider -->
                        <div id="owl-demo" class="owl-carousel text-center">
                            <div class="item">
                                <img class="lazyOwl img-responsive" data-src="images/slider1.jpg" alt="name">
                            </div>
                            <div class="item">
                                <img class="lazyOwl img-responsive" data-src="images/slider2.jpg" alt="name">
                            </div>
                            <div class="item">
                                <img class="lazyOwl img-responsive" data-src="images/slider3.jpg" alt="name">
                            </div>
                            <div class="item">
                                <img class="lazyOwl img-responsive" data-src="images/slider4.jpg" alt="name">
                            </div>
                            <div class="item">
                                <img class="lazyOwl img-responsive" data-src="images/slider5.jpg" alt="name">
                            </div>
                            <div class="item">
                                <img class="lazyOwl img-responsive" data-src="images/slider6.jpg" alt="name">
                            </div>
                            <div class="item">
                                <img class="lazyOwl img-responsive" data-src="images/slider7.jpg" alt="name">
                            </div>

                        </div>
                    </div>
                    <!--//sreen-gallery-cursual---->
                </div>
            </div>
            <div style="margin-top:150px;text-align: center">
                <h1>欢迎回来</h1>
            </div>
        </div>
    </div>
    <!--footer-->
    <div class="footer">
        <p>2021-7-13考试网所有版权归xxx所有 <a href="/examproject/nologin/index.jsp" target="_blank">前往前台</a></p>
    </div>
    <!--//footer-->
</div>

<!-- new added graphs chart js-->

<script src="js/Chart.bundle.js"></script>
<script src="js/utils.js"></script>

<script>
    document.getElementById('randomizeData').addEventListener('click', function() {
        var zero = Math.random() < 0.2 ? true : false;
        barChartData.datasets.forEach(function(dataset) {
            dataset.data = dataset.data.map(function() {
                return zero ? 0.0 : randomScalingFactor();
            });

        });
        window.myBar.update();
    });

    var colorNames = Object.keys(window.chartColors);
    document.getElementById('addDataset').addEventListener('click', function() {
        var colorName = colorNames[barChartData.datasets.length % colorNames.length];;
        var dsColor = window.chartColors[colorName];
        var newDataset = {
            label: 'Dataset ' + barChartData.datasets.length,
            backgroundColor: color(dsColor).alpha(0.5).rgbString(),
            borderColor: dsColor,
            borderWidth: 1,
            data: []
        };

        for (var index = 0; index < barChartData.labels.length; ++index) {
            newDataset.data.push(randomScalingFactor());
        }

        barChartData.datasets.push(newDataset);
        window.myBar.update();
    });

    document.getElementById('addData').addEventListener('click', function() {
        if (barChartData.datasets.length > 0) {
            var month = MONTHS[barChartData.labels.length % MONTHS.length];
            barChartData.labels.push(month);

            for (var index = 0; index < barChartData.datasets.length; ++index) {
                //window.myBar.addData(randomScalingFactor(), index);
                barChartData.datasets[index].data.push(randomScalingFactor());
            }

            window.myBar.update();
        }
    });

    document.getElementById('removeDataset').addEventListener('click', function() {
        barChartData.datasets.splice(0, 1);
        window.myBar.update();
    });

    document.getElementById('removeData').addEventListener('click', function() {
        barChartData.labels.splice(-1, 1); // remove the label first

        barChartData.datasets.forEach(function(dataset, datasetIndex) {
            dataset.data.pop();
        });

        window.myBar.update();
    });
</script>
<!-- new added graphs chart js-->

<!-- Classie --><!-- for toggle left push menu script -->
<script src="js/classie.js"></script>
<script>
    var menuLeft = document.getElementById( 'cbp-spmenu-s1' ),
        showLeftPush = document.getElementById( 'showLeftPush' ),
        body = document.body;

    showLeftPush.onclick = function() {
        classie.toggle( this, 'active' );
        classie.toggle( body, 'cbp-spmenu-push-toright' );
        classie.toggle( menuLeft, 'cbp-spmenu-open' );
        disableOther( 'showLeftPush' );
    };


    function disableOther( button ) {
        if( button !== 'showLeftPush' ) {
            classie.toggle( showLeftPush, 'disabled' );
        }
    }
</script>
<!-- //Classie --><!-- //for toggle left push menu script -->

<!--scrolling js-->
<script src="js/jquery.nicescroll.js"></script>
<script src="js/scripts.js"></script>
<!--//scrolling js-->

<!-- side nav js -->
<script src='js/SidebarNav.min.js' type='text/javascript'></script>
<script>
    $('.sidebar-menu').SidebarNav()
</script>
<!-- //side nav js -->

<!-- for index page weekly sales java script -->
<script src="js/SimpleChart.js"></script>

<script src="js/bootstrap.js"> </script>

</body>
</html>